//导入request.js请求工具
import request from "@/utils/request.js";

//提供调用书评列表的函数
export const reviewListService = (query) => {
  return request.get("/review", { params: query });
};

//提供调用修改书评状态的函数
export const reviewUpdateService = (id, status) => {
  return request.put(`/review/${id}/${status}`);
};

//提供调用批量修改书评状态的函数
export const reviewUpdateBatchService = (ids, status) => {
  return request.put("/review/batch-update",{
    ids,
    status
  });
};
